<?php

namespace app\admin\model;

use app\admin\model\CommonModel;

class LeaMatchModel extends CommonModel
{

    const FOOTBALL   = 0;
    const BASKETBLAL = 1;
    const ELECTRONIC = 2;


    public static $refundType = [
        self::FOOTBALL   => '足球',
        self::BASKETBLAL => '篮球',
        self::ELECTRONIC => '电竞',
    ];


    public function teams()
    {
        return $this->hasMany('TeamModel', 'lea_id');
    }
}
